package com.dragon.dragonshop.controller.user;

import com.dragon.dragonshop.service.UserCartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

@Controller
@RequestMapping("/user/cart")
public class UserCartController {

    @Autowired
    UserCartService userCartService;

    @GetMapping("/cart.html")
    public String showUserCart(HttpSession session){
        Object user = session.getAttribute("user");
        return "cart";
    }
}
